A Tight Amortized Bound for Path Reversal
نویسندگان
چکیده
Let T be a rooted tree. A path reversal at a node x in T is performed by traversing the path from x to the tree root r and making x the parent of each node on the path other than X. Thus x becomes the new tree root. (See Fig. 1). The cost of the reversal is the number of edges on the path reversed. Path reversal is a variant of the standard path compression algorithm for maintaining disjoint sets under union [5]. It has also been used in a novel mutual exclusion algorithm [2,6]. Suppose that a sequence of m reversals is performed on an arbitrary initial n-node tree. What is the total cost of the sequence? Let T(n, m) be the
منابع مشابه
A Systematic Analysis of Splaying
In this paper we perform an amortized analysis of a functional program for splaying. We construct a potential function that yields the same bound for the amortized cost of splaying as given by D.D. Sleator and R.E. Tarjan—the inventors of splay trees. In addition, we show that this bound is minimal for the class of “sum of logs” potentials. Our approach also applies to the analysis of path reve...
متن کاملIcs 691: Advanced Data Structures Lecture 1 2.1 Aggregate Method
Amortized analysis is a method of analyzing algorithms that can help us determine an upper bound on the complexity of an algorithm. This is particular useful when analyzing operations on data structures, when they they involve slow, rarely occurring operations and fast, more common operations. With this disparity between each operations’ complexity, it is difficult to get a tight bound on the o...
متن کاملAn asymptotic study for path reversal
A path reversal is performed in a rooted tree when a node becomes the root of all the nodes along the path from it to the former root. This algorithm on trees is presented as a transition system specified by induction over a convenient view of the tree structure. When each tree node is assigned a fixed weight representing its relative probability to move to the root, the transition system defin...
متن کاملOnline bipartite matching with amortized $O(\log^2 n)$ replacements
In the online bipartite matching problem with replacements, all the vertices on one side of the bipartition are given, and the vertices on the other side arrive one by one with all their incident edges. The goal is to maintain a maximum matching while minimizing the number of changes (replacements) to the matching. We show that the greedy algorithm that always takes the shortest augmenting path...
متن کاملA bound for Feichtinger conjecture
In this paper, using the discrete Fourier transform in the finite-dimensional Hilbert space C^n, a class of nonRieszable equal norm tight frames is introduced and using this class, a bound for Fiechtinger Conjecture is presented. By the Fiechtinger Conjecture that has been proved recently, for given A,C>0 there exists a universal constant delta>0 independent of $n$ such that every C-equal...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Inf. Process. Lett.
دوره 31 شماره
صفحات -
تاریخ انتشار 1989